/*
 * FitnessComputer.cpp
 *
 *  Created on: 7.1.2013
 *      Author: shadius
 */

#include "FitnessComputer.h"

FitnessComputer::FitnessComputer(LPAPPROXPOINT const bgAPPROXPOINTS,
		LPAPPROXPOINT const igAPPROXPOINTS, int len,
		LINDIVIDUUM const population, double * m_fitness,
		const shared_ptr<IFastDataApprox> &BGValues,
		const shared_ptr<IFastDataApprox> &IGValues,
		const shared_ptr<vector<double>> p_ECGValues, INPUT_PARAMS params,
		THREAD_RESULTS *result, tbb::mutex *mutex) :
		bgAPPROXPOINTS(bgAPPROXPOINTS), igAPPROXPOINTS(igAPPROXPOINTS), len(
				len), population(population), m_fitness(m_fitness), p_BGValues(
				BGValues), p_IGValues(IGValues), p_ECGValues(p_ECGValues), params(
				params), checker(Checker(params)), result(result), mutex(mutex) {
}

